<!DOCTYPE html>
<html>
    <head><title>法条匹配结果</title></head>
    <body>
        <h1>法条匹配结果</h1>
        <h2>文本类别为:</h2>{{type}}
        <br><h2>匹配结果为</h2>
       <table border="1">
        <tr>
            {% if embedding_type == '案由匹配' %}
            <th>案由DM</th>
            <th>案由名称</th>
            {% else %}
            <th>匹配条数</th>
            <th>匹配内容</th>
            {% end %}
            {% if embedding_type == '关键词匹配' %}
            <th>关键词</th>
            {% else %}
            <th>相似度</th>
            {% end %}
        </tr>

        {% for r in result %}
         <tr>
            <td>{{r['num']}}</td>
             <td>{{r['result']}}</td>
             {% if embedding_type == '关键词匹配' %}
             <td>{{r['words']}}</td>
             {% else %}
             <td>{{r['cos']}}</td>
             {% end %}
        </tr>
        {% end %}

    </table>
        <br><input   type="button"   value="返回"   onclick="window.location.href='../'" >
        <h3>您输入的文本内容是:</h3><br> {{content}}
        <h3>您选择的相似匹配方法是:</h3><br> {{embedding_type}}
    </body>
</html>